:root {
  --primary: #007fff;
  --on-primary: #fff;
  --primary-variant: #0059b2;
  --on-primary-variant: #fff;

  --shadow: 1px 1px 5px 1px #0005;
  
  --light-surface: #d0d0f0;
  --light-background: #e2e0f2;
  --on-light-background: #000;

  --dark-surface: #111;
  --dark-background: #111622;
  --on-dark-background: #fff;

}

.dark {
  color-scheme: dark;
  
  --surface: var(--dark-surface);
  --background: var(--dark-background);
  --on-background: var(--on-dark-background);
}

.light {
  color-scheme: light;

  --surface: var(--light-surface);
  --background: var(--light-background);
  --on-background: var(--on-light-background);
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

html,
body {
  height: 100%;
  font-size: 20px;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  transition: background 0.3s;
  background: var(--background);
  color: var(--on-background);
  font-family: Inter;
}

@media (min-width: 1024px) {

  /* 1024px - 0 */
  .img-genshin {
    float: left;
  }

  :root {
    --page-width: 60%;
    --button-columns: 1fr 1fr;
    --fab-top-width: 148px;
    --fab-top-radius: 10px;
  }

  .fab-top {
    position: fixed;
    padding: 16px;
  }

  .fab-top>svg {
    margin: 0;
  }
}

@media (max-width: 1024px) {

  /* 900px - 1024px */
  .img-genshin {
    float: left;
  }

  :root {
    --page-width: 70%;
    --button-columns: 1fr 1fr;
    --fab-top-width: 82px;
    --fab-top-radius: 10px;
  }

  .fab-top {
    position: fixed;
    padding: 16px;
  }

  .fab-top__text {
    display: none;
  }

  .fab-top>svg {
    margin: 0;
  }
}

@media (max-width: 900px) {

  /* 700px - 900px */
  .img-genshin {
    float: left;
  }

  :root {
    --page-width: 80%;
    --button-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {

  /* 320px - 700px */
  .part__title {
    text-align: center;
  }

  .img-genshin {
    float: unset;
    position: relative;
    left: 50%;
    transform: translate(-50%);
  }

  :root {
    --page-width: calc(100% - 20px);
    --button-columns: 1fr;
    --fab-top-radius: 16px;
  }

  .fab-top {
    position: initial;
    padding: 32px;
    margin-bottom: 74px;
  }

  .fab-top__text {
    display: initial;
  }

  .fab-top>svg {
    margin: 0 16px 0 0;
  }
}

@media (max-width: 320px) {

  /* 0 - 320px */
  .part__title {
    text-align: center;
  }

  .img-genshin {
    margin: 0 auto;
  }

  :root {
    --page-width: calc(100% - 20px);
    --button-columns: 1fr;
    --fab-top-padding: 32px;
  }
}





main,
header,
footer {
  padding: 0 calc((100% - var(--page-width))/2);
  transition: background 0.3s;
}

header {
  background-color: var(--surface);
  padding-top: 32px;
  padding-bottom: 32px;
  box-shadow: var(--shadow);
}

nav {
  font-size: 1rem;
  font-family: Inter;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
}

footer {
  background-color: var(--surface);
  padding-top: 64px;
  padding-bottom: 32px;
  font-size: 0.75rem;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
}

h2 {
  margin: 25px 0;
}

.part {
  color: var(--on-background);
  font-size: 1rem;
  width: 100%;
  padding: 32px 0;
}

.part__title {
  font-family: Inter;
  font-weight: 900;
  font-size: 1.25rem;
}

.part__list {
  margin: 22px;
}

.part__list>li {
  margin: 1rem 0;
}

.part__content {
  text-indent: 1.25rem;
  margin: 22px 0;
}

.part-other-contacts {
  padding-bottom: 64px;
}

.img-genshin {
  width: 270px;
  border-radius: 16px;
  margin: 0 25px 25px 0;
}

.buttons-wrapper {
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: var(--button-columns);
}

.fab-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  margin-right: 20px;
  box-shadow: var(--shadow);
  background-color: var(--primary);
  right: calc((100% - var(--page-width)) / 4 - var(--fab-top-width) / 2);
  bottom: 32px;
  border-radius: var(--fab-top-radius);
  transition: opacity 0.3s;
  cursor: pointer;
}

.fab-top>svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--on-primary);
}

.fab-top__text {
  font-family: Inter;
  font-weight: 700;
  font-size: 1rem;
  color: var(--on-primary);
}

.fab-top:hover,
.fab-top:hover>svg,
.fab-top:hover>.fab-top__text {
  background-color: var(--primary-variant);
}

.fab-top-hidden {
  cursor: default;
  opacity: 0;
}

.button {
  display: flex;
  align-items: center;
  padding: 32px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 16px;
  transition: 0.1s;
  font-family: Inter;
  font-weight: 700;
  margin: 10px 10px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.button svg {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.button svg path {
  fill: var(--primary);
}

.button:hover {
  color: var(--primary-variant);
  border: 1px solid var(--primary-variant);
}

.button:hover svg path {
  fill: var(--primary-variant);
}

.button__text {
  height: 100%;
  line-height: 32px;
  flex-basis: 100%;
  margin: 0 0 0 32px;
}